package com.tuling.llmlangchain4j.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.spring.AiService;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;


@AiService(wiringMode = EXPLICIT,
        chatModel = "qwenChatModel",
        chatMemoryProvider = "smartChatMemoryProvider",
        tools = "appointmentTools"
)
public interface SmartAssisant {
    @SystemMessage(fromResource = "xiaozhi-system-template.txt")
    String chat(@MemoryId String memoryId, @UserMessage String userMessage);
}
